home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / hardware / set-desk.c < prev   
Encoding:
C/C++ Source or Header  |  1995-09-10  |  1.2 KB  |  42 lines

  1. From samba!concert!rock!stanford.edu!agate!spool.mu.edu!olivea!uunet!pipex!demon!rama.demon.co.uk!steve Sat Nov 21 13:55:08 EST 1992
  2. Article: 17105 of comp.os.linux
  3. Path: samba!concert!rock!stanford.edu!agate!spool.mu.edu!olivea!uunet!pipex!demon!rama.demon.co.uk!steve
  4. From: steve@rama.demon.co.uk (Steve Entwistle)
  5. Newsgroups: comp.os.linux
  6. Subject: Re: Printing on a deskjet ??
  7. Message-ID: <722368985snz@rama.demon.co.uk>
  8. Date: 21 Nov 92 13:23:01 GMT
  9. References: <722312538.AA21705@remote.halcyon.com>
  10. Sender: usenet@gate.demon.co.uk
  11. Reply-To: steve@rama.demon.co.uk
  12. Organization: None
  13. Lines: 24
  14. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.18)
  15.  
  16.  
  17. In article <722312538.AA21705@remote.halcyon.com> Ron.Howard@f1.n2250.z1.fidonet.org writes:
  18.  
  19. >HELP!
  20. >        I have an HP Deskjet 500C printer and a problem. When ever I 
  21. >print from linux all I get is linefeeds no CR. On my printer this prints
  22. >one line and then all the rest is off the page.
  23. >        Can someone tell me how to get linux to add CR to its lines?
  24. >
  25.  
  26. Compile the following program, and then re-direct its output to your
  27. printer. E.g.
  28.  
  29.             cc -o setdj setdj.c
  30.             setdj > /dev/lp1
  31.  
  32.  
  33.  
  34. #include <stdio.h>
  35.  
  36. void main()
  37. {
  38.     printf("\x01b\x026\x06b\x033\x047");
  39. }
  40.  
  41.  
  42.